package com.example.demo.proxy3;

import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.Configuration;
import org.springframework.context.annotation.EnableAspectJAutoProxy;

@Configuration
@EnableAspectJAutoProxy(proxyTargetClass = false)
public class AppConfig {
    @Bean
    public LoggingAspect getLoggingAspect(){
        return new LoggingAspect();
    }

    @Bean
    public ChildService getChildService(){
        return new ChildService();
    }

}
